import service from '.'


const fileApi = {
    upload(file) {
        return service.post('/admin/upload', file);
    },
    excelUpload(file) {
        return service.post('/admin/excel/upload', file);
    },
    excelDowload() {
        return service.get('/admin/excel/download', {
            responseType: 'blob'
        });
    }
}

export default fileApi;